<?php
namespace app\index\controller;
use \app\index\controller\Base;
use \think\Db;

class Company extends Base
{
     public function index(){
        $web=Db::name('company')->where('class',$this->request->param('class'))->find();
        switch ($this->request->param('class')) {
            case 'team':
                $web['index']='管理团队';
                $w='team';
                break;
            case 'wenhua':
                $w='wenhua';

                $web['index']='企业文化';
                break;
            case 'dec':
                $w='dec';

                $web['index']='企业简介';
                break;
        }
            $this->assign("web",$web);
            $this->assign("w",$w);
            $this->assign("menu",'2');
            $this->assign("_title",$web['index']);
            return $this->fetch();
    }
}
